package com.zhixinhuixue.zsyte.xxx.ui.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zhixinhuixue.zsyte.xxx.R
import com.zhixinhuixue.zsyte.xxx.data.response.MainEntity


/**
 * 作者　: hegaojian
 * 时间　: 2020/11/18
 * 描述　:
 */
class TestAdapter : BaseQuickAdapter<MainEntity, BaseViewHolder>(R.layout.item_test),
    LoadMoreModule {

    override fun convert(holder: BaseViewHolder, item: MainEntity) {
        holder.setText(R.id.item_test_button, item.Name)


        Glide.with(context)
            .load(item.IconCls)
            .into(holder.getView(R.id.iv_image))
    }

}